﻿
namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 工艺主表
    /// </summary>
    [SugarTable("cks_technique_template")]
    [Table(Name = "cks_technique_template")]
    public class CksTechniqueTemplate : BaseEntity
    {
        /// <summary>
        /// Id 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 上级Id 
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 名称 
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 类型 1 模板 2模板结构 
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// Plc编号 
        /// </summary>
        public int PlcId { get; set; }

        /// <summary>
        /// 读取DB编号 
        /// </summary>
        public int ReadDB { get; set; }

        /// <summary>
        /// 写入DB编号 
        /// </summary>
        public int WriteDB { get; set; }

        /// <summary>
        /// 下发动作编号 
        /// </summary>
        public int SendActionId { get; set; }

        /// <summary>
        /// 同步动作编号 
        /// </summary>
        public int SyncActionId { get; set; }

        /// <summary>
        /// 顺序 
        /// </summary>
        public int Sequence { get; set; }

        /// <summary>
        /// Type=2生效 
        /// </summary>
        public int DataId { get; set; }

        /// <summary>
        /// 工艺主键(用于同步) 
        /// </summary>
        public bool IsPrimary { get; set; }

        /// <summary>
        /// 禁用状态 
        /// </summary>
        public bool Nullity { get; set; }

        /// <summary>
        /// CreatedTime 
        /// </summary>
        public DateTime? CreatedTime { get; set; }

    }
}